From 3ebde5303abf04e1ea745046aae11e96fabf470d Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 4 Aug 2013 09:19:03 +0200 Subject: [PATCH] themingengine: use gtk_icon_source_get_state_wildcarded() A recent refactor of this code missed a check for the wildcarded state on the icon source. --- gtk/gtkthemingengine.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index edb493ba61..d47b7d2a42 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -2728,6 +2728,10 @@ gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine, scaled = g_object_ref (base_pixbuf); /* If the state was wildcarded, then generate a state. */ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + wildcarded = gtk_icon_source_get_state_wildcarded (source); + G_GNUC_END_IGNORE_DEPRECATIONS; + if (wildcarded) { if (state & GTK_STATE_FLAG_INSENSITIVE) -- 2.30.2